package com.itcaius.myandroidhomework.data.model;

/**
 * Created by caius on 2025/03/28.
 * 书籍数据的实现类
 */
public class Book {
    /**
     * 图片资源ID
     */
    private Integer ImageResId;
    /**
     * 标题
     */
    private String title;
    /**
     * 描述
     */
    private String description;
    /**
     * 是否选择
     */
    private Boolean selected;

    //构造函数(默认是不选择)
    public Book(Integer imageResId, String title, String description) {
        ImageResId = imageResId;
        this.title = title;
        this.description = description;
        this.selected = false;
    }
    public int getImageResId() {
        return ImageResId;
    }

    public String getTitle(){
        return title;
    }

    public String getDescription(){
        return description;
    }

    public Boolean isSelected(){
        return selected;
    }
    //设置是否选择
    public void setSelected(Boolean selected){
        this.selected = selected;
    }

}
